inherited fApontamento: TfApontamento
  Left = 255
  Top = 150
  Caption = 'Apontamento Producao'
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited MMJPanel1: TMMJPanel
    Height = 57
    object Label2: TLabel
      Left = 24
      Top = 8
      Width = 37
      Height = 13
      Caption = 'Produto'
      Transparent = True
    end
    object Label4: TLabel
      Left = 216
      Top = 8
      Width = 20
      Height = 13
      Caption = 'O.F.'
      Transparent = True
    end
    object edProduto: TEdit
      Left = 72
      Top = 5
      Width = 121
      Height = 21
      TabOrder = 0
      OnExit = edProdutoExit
    end
    object edOf: TEdit
      Left = 247
      Top = 4
      Width = 121
      Height = 21
      TabOrder = 1
      OnExit = edOfExit
    end
    object edProdDescri: TEdit
      Left = 72
      Top = 29
      Width = 481
      Height = 21
      Color = clInfoBk
      Enabled = False
      TabOrder = 2
    end
  end
  inherited MMJPanel2: TMMJPanel
    inherited btnGravar: TBitBtn
      Visible = False
    end
    inherited btnIncluir: TBitBtn
      Left = 39
      Visible = False
    end
    inherited btnExcluir: TBitBtn
      Visible = False
    end
    inherited btnProcurar: TBitBtn
      Left = 396
      OnClick = btnProcurarClick
    end
  end
  object gridProd: TJvDBGrid [2]
    Left = 0
    Top = 60
    Width = 625
    Height = 309
    Align = alCustom
    DataSource = dsDetOf
    Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
    TabOrder = 2
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    AlternateRowFontColor = clBlue
    AutoSizeColumns = True
    SelectColumnsDialogStrings.Caption = 'Select columns'
    SelectColumnsDialogStrings.OK = '&OK'
    SelectColumnsDialogStrings.NoSelectionWarning = 'At least one column must be visible!'
    EditControls = <>
    RowsHeight = 17
    TitleRowHeight = 17
    Columns = <
      item
        Expanded = False
        FieldName = 'DOF_CODIGO'
        Title.Caption = 'O.F. DET.'
        Width = 115
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'DOF_CODIOF'
        Title.Caption = 'O.F.'
        Width = 142
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'DOF_QTDPRG'
        Title.Caption = 'QTDE.'
        Width = 176
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'DOF_STATUS'
        Title.Caption = 'STATUS'
        Width = 172
        Visible = True
      end>
  end
  object dsDetOf: TDataSource
    DataSet = cdsDetOf
    Left = 262
    Top = 361
  end
  object cdsDetOf: TClientDataSet
    Aggregates = <>
    Params = <>
    ProviderName = 'dspDetOf'
    Left = 230
    Top = 361
    object cdsDetOfDOF_CODIGO: TFMTBCDField
      FieldName = 'DOF_CODIGO'
      Required = True
      Precision = 32
      Size = 8
    end
    object cdsDetOfDOF_CODIOF: TStringField
      FieldName = 'DOF_CODIOF'
      Required = True
      Size = 60
    end
    object cdsDetOfDOF_QTDPRG: TFMTBCDField
      FieldName = 'DOF_QTDPRG'
      DisplayFormat = ',##0.0'
      EditFormat = ',##0.0'
      Precision = 32
      Size = 8
    end
    object cdsDetOfDOF_STATUS: TStringField
      FieldName = 'DOF_STATUS'
      Size = 10
    end
    object cdsDetOfPRO_QTDEMB: TFMTBCDField
      FieldName = 'PRO_QTDEMB'
      Required = True
      DisplayFormat = ',##0.0'
      EditFormat = ',##0.0'
      Precision = 32
      Size = 8
    end
  end
  object dspDetOf: TDataSetProvider
    DataSet = sqlDetOf
    Options = [poAllowCommandText]
    Left = 198
    Top = 361
  end
  object sqlDetOf: TSQLDataSet
    CommandText = 
      'SELECT DOF_CODIGO, DOF_CODIOF, DOF_QTDPRG, DECODE(DOF_STATUS, 0,' +
      ' '#39'AGUARDANDO'#39', 1, '#39'LIBERADA'#39') DOF_STATUS, DOF_QTDREA PRO_QTDEMB ' +
      'FROM ATS_DETOF'
    MaxBlobSize = -1
    Params = <>
    SQLConnection = dm.SQLConnection1
    Left = 166
    Top = 361
    object sqlDetOfDOF_CODIGO: TFMTBCDField
      FieldName = 'DOF_CODIGO'
      Required = True
      Precision = 32
      Size = 8
    end
    object sqlDetOfDOF_CODIOF: TStringField
      FieldName = 'DOF_CODIOF'
      Required = True
      Size = 60
    end
    object sqlDetOfDOF_QTDPRG: TFMTBCDField
      FieldName = 'DOF_QTDPRG'
      Precision = 32
      Size = 8
    end
    object sqlDetOfDOF_STATUS: TStringField
      FieldName = 'DOF_STATUS'
      Size = 10
    end
    object sqlDetOfPRO_QTDEMB: TFMTBCDField
      FieldName = 'PRO_QTDEMB'
      Required = True
      Precision = 32
      Size = 8
    end
  end
end
